package com.ypd.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ypd.shop.mapper.HouseDescriptionMapper;
import com.ypd.shop.domain.HouseDescription;
import com.ypd.shop.service.IHouseDescriptionService;

/**
 * 简化版拍卖房屋信息Service业务层处理
 * 
 * @author lin
 * @date 2025-02-28
 */
@Service
public class HouseDescriptionServiceImpl implements IHouseDescriptionService 
{
    @Autowired
    private HouseDescriptionMapper houseDescriptionMapper;

    /**
     * 查询简化版拍卖房屋信息
     * 
     * @param itemId 简化版拍卖房屋信息主键
     * @return 简化版拍卖房屋信息
     */
    @Override
    public HouseDescription selectHouseDescriptionByItemId(String itemId)
    {
        return houseDescriptionMapper.selectHouseDescriptionByItemId(itemId);
    }

    /**
     * 查询简化版拍卖房屋信息列表
     * 
     * @param houseDescription 简化版拍卖房屋信息
     * @return 简化版拍卖房屋信息
     */
    @Override
    public List<HouseDescription> selectHouseDescriptionList(HouseDescription houseDescription)
    {
        return houseDescriptionMapper.selectHouseDescriptionList(houseDescription);
    }

    /**
     * 新增简化版拍卖房屋信息
     * 
     * @param houseDescription 简化版拍卖房屋信息
     * @return 结果
     */
    @Override
    public int insertHouseDescription(HouseDescription houseDescription)
    {
        return houseDescriptionMapper.insertHouseDescription(houseDescription);
    }

    /**
     * 修改简化版拍卖房屋信息
     * 
     * @param houseDescription 简化版拍卖房屋信息
     * @return 结果
     */
    @Override
    public int updateHouseDescription(HouseDescription houseDescription)
    {
        return houseDescriptionMapper.updateHouseDescription(houseDescription);
    }

    /**
     * 批量删除简化版拍卖房屋信息
     * 
     * @param itemIds 需要删除的简化版拍卖房屋信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseDescriptionByItemIds(String[] itemIds)
    {
        return houseDescriptionMapper.deleteHouseDescriptionByItemIds(itemIds);
    }

    /**
     * 删除简化版拍卖房屋信息信息
     * 
     * @param itemId 简化版拍卖房屋信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseDescriptionByItemId(String itemId)
    {
        return houseDescriptionMapper.deleteHouseDescriptionByItemId(itemId);
    }
}
